package com.Exception.NormalException;

import com.Exception.MyException;

import javax.servlet.http.HttpServletResponse;

abstract public class NormalException extends MyException {
    abstract public int getCode();

    public void setStatus(HttpServletResponse response) {
        response.setStatus(this.getCode());
    }
}
